<?php
defined('IN_ADMIN') or exit('No permission resources.');

include $this->admin_tpl('header','admin');
?>
<div id="closeParentTime" style="display:none"></div>

<div class="pad-10">
<div id="searchid">
<form name="searchform" action="" method="get" >
<input type="hidden" value="content" name="m">
<input type="hidden" value="feedback" name="c">
<input type="hidden" value="init" name="a">
<input type="hidden" value="1" name="search">
<input type="hidden" value="<?php echo $pc_hash;?>" name="pc_hash">
<table width="100%" cellspacing="0" class="search-form">
	<tr> <td> <div class="explain-col">
	<input type="submit" name="search" class="button" value="搜索">
	</div> </td> </tr>
</table>
</form>
</div>
<form name="myform" id="myform" action="" method="post" >
<div class="table-list">
<table width="100%">
	<thead>
		<tr>
		<th width="16"><input type="checkbox" value="" id="check_box" onclick="selectall('ids[]');"></th>
		<th width="40">ID</th>
		<th>uid</th>
		<th>内容</th>
		<th>真实姓名</th>
		<th>qq</th>
		<th>email</th>
		</tr>
	</thead>
<tbody>
<?php foreach ($datas as $r) { ?>
	<tr>
	<td align="center"><input class="inputcheckbox " name="ids[]" value="<?php echo $r['id'];?>" type="checkbox"></td>
	<td align='center'><?=$r['id']?></td>
	<td align='center'><?=$r['uid']?></td>
	<td align='center'><?=$r['content']?></td>
	<td align='center'><?=$r['realname']?></td>
	<td align='center'><?=$r['qq']?></td>
	<td align='center'><?=$r['email']?></td>
</tr>
<?php } ?>
</tbody>
	 </table>
	<div class="btn"><label for="check_box"><?php echo L('selected_all');?>/<?php echo L('cancel');?></label>
		<input type="hidden" value="<?php echo $pc_hash;?>" name="pc_hash">
	</div>
	<div id="pages"><?=$pages?></div>
</div>
</form>
</div>
<script type="text/javascript" src="<?php echo JS_PATH?>cookie.js"></script>
<script type="text/javascript">
function confirm_delete(){
	if(confirm('<?php echo L('confirm_delete', array('message' => L('selected')));?>')) $('#myform').submit();
}
setcookie('refersh_time', 0);
function refersh_window() {
	var refersh_time = getcookie('refersh_time');
	if(refersh_time==1) {
		window.location.reload();
	}
}
setInterval("refersh_window()", 3000);
</script>
</body>
</html>